package com.bjdd.jdy.entity;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2017/4/20.
 */

public class FeedBack {

    /**
     * content : string
     * mobile : string
     * userId : 0
     */

    private String content;
    private String mobile;
    private String userId;
    private int type;

    public static FeedBack objectFromData(String str) {

        return new Gson().fromJson(str, FeedBack.class);
    }

    public static List<FeedBack> arrayFeedBackFromData(String str) {

        Type listType = new TypeToken<ArrayList<FeedBack>>() {
        }.getType();

        return new Gson().fromJson(str, listType);
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
